package com.fsserver.core.service.impl;

import com.fsserver.common.utils.OrderNoGenerator;
import com.fsserver.core.service.OrderNoService;
import org.springframework.stereotype.Service;

/**
 * 订单号生成服务实现类
 * 
 * @author fsserver
 * @date 2025-03-13
 */
@Service
public class OrderNoServiceImpl implements OrderNoService {
    
    @Override
    public String generatePaymentOrderNo(String paymentType) {
        return OrderNoGenerator.generatePaymentOrderNo(paymentType);
    }
    
    @Override
    public String generatePaymentTransactionNo(String paymentType) {
        return OrderNoGenerator.generatePaymentTransactionNo(paymentType);
    }
    
    @Override
    public String generateRefundNo(String paymentType) {
        return OrderNoGenerator.generateRefundNo(paymentType);
    }
    
    @Override
    public String generateReconciliationNo(String paymentType) {
        return OrderNoGenerator.generateReconciliationNo(paymentType);
    }
    
    @Override
    public String generateNotificationNo(String notificationType) {
        return OrderNoGenerator.generateNotificationNo(notificationType);
    }
    
    @Override
    public String extractBusinessType(String orderNo) {
        return OrderNoGenerator.extractBusinessType(orderNo);
    }
    
    @Override
    public String extractPaymentType(String orderNo) {
        return OrderNoGenerator.extractPaymentType(orderNo);
    }
    
    @Override
    public String extractCreateDate(String orderNo) {
        return OrderNoGenerator.extractCreateDate(orderNo);
    }
} 